package com.monkey.kotlinapp.domain

import com.monkey.kotlinapp.DataMapper.ForecastDataMapper
import com.monkey.kotlinapp.Request
import com.monkey.kotlinapp.model.ForecastList

/**
 * Created by klp13115 on 2017/11/1.
 */
class RequestForecastCommand(private val zipCode: String): Command<ForecastList> {
    override fun execute(): ForecastList {
        val forecastResult = Request(zipCode).execute()
        return ForecastDataMapper().convertFromDataModel(forecastResult)
    }
}